﻿#ifndef _SESSIONSOCKET_H
#define _SESSIONSOCKET_H

#include "datasocket.h"

using namespace TypesLib;

namespace SocketLib
{

class ListenSocket;

class SessionSocket : public DataSocket
{
public:
    SessionSocket();
    void            setListenSocket(ListenSocket*);
protected:
    void            onClose();
    virtual void    disSocket();
private:
    virtual void    onClientDisConnection() {}

private:
    ListenSocket*    m_listenSocket;
};

}

#endif
